<?php

use yii\db\Migration;

class m200407_000403_cases extends Migration
{
    public function up()
    {
        $this->addColumn('{{%cases}}', 'sort', $this->integer()->unsigned()->notNull()->defaultValue(0)->comment('排序')->after('updated_at'));
    }

    public function down()
    {
        $this->dropColumn('{{%cases}}', 'sort');
    }
}
